package com.zbf1811a.web;

import com.zbf1811a.service.UpdateRedisAndMysqlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/7/27  18:19
 * 描述:
 */
@RestController
public class TestController {

    @Autowired
    private UpdateRedisAndMysqlService updateRedisAndMysqlService;


    @RequestMapping("test01")
    public String testRedisMysql(){
        updateRedisAndMysqlService.updateCacheData();
        return "ok";
    }
}
